package spring;

import org.springframework.stereotype.Component;

@Component
public class Data {
	private String name;
	private String sex;
	private Integer age;
	private String address;
	 
	private String address3;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	@Override
	public String toString() {
		String str="";
		str="������"+name+",�Ա�"+sex+",���䣺"+age+",��ַ��"+address;
		return str;
	}
	public Data() {
		super();
	}
	public Data(String name, String sex, Integer age, String address) {
		super();
		this.name = name;
		this.sex = sex;
		this.age = age;
		this.address = address;
	}
	
	
	
}
